package com.gjy.mybatis.mapper;

import com.gjy.mybatis.domain.Author;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-09-29 11:05:49
 */
public interface AuthorMapper {

    @Select("select * from author")
    List<Author> selectAll();

    @Select("select * from author where gender=#{gender}")
    List<Author> selectByGender(@Param("gender") String gender);

    int insertOne(Author author);

    int insertRetKey(Author author);
}
